package jxta.chat;

import jxta.chat.entities.AbstractMessage;
import jxta.chat.entities.LogOutMessage;
import jxta.chat.events.JxtaChatEvent;
import net.jxta.endpoint.Message;
import net.jxta.peergroup.PeerGroup;
import net.jxta.pipe.PipeMsgEvent;

public class LogOutMessageHandler extends AbstractMessageHandler{
	
	@SuppressWarnings(value="unchecked")
	@Override
	public AbstractMessage handleMessage(Message msg, PeerGroup pg){
		
		LogOutMessage lg = new LogOutMessage(msg);
		
		// Notify the listeners about the new pipe
		JxtaChatEvent event = new JxtaChatEvent(lg);
		notifyListeners(event);
		
		return null;
	}

	public void pipeMsgEvent(PipeMsgEvent event) {
		// TODO Auto-generated method stub
		
	}
	
}
